package cn.ciis.sys.operationlog;

import cn.ciis.basic.base.BaseService;
import cn.ciis.basic.model.OperationLog;
import com.jfinal.kit.Ret;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

/** @author 冉志林 */
public class OperationLogAdminService extends BaseService {
  private OperationLog dao = new OperationLog().dao();

  @Override
  public Model getDao() {
    return dao;
  }

  public Ret clearOperationLog() {
    Db.delete("TRUNCATE sys_operation_log");
    return Ret.ok("msg", "操作日志清空成功");
  }
}
